package com.vedana.bankmobile.dao;

import java.util.List;

import com.vedana.bankmobile.shared.Operation;

/**
 * DAO interface to operations
 * @author Didier MOISE
 *
 */
public interface OperationDao {
	/**
	 * Add a new operation
	 * @param operation Operation object
	 */
	void addOperation(Operation operation);
	
	/**
	 * List operations for an account
	 * @param accountId Account id
	 * @return List of operations for this account
	 */
	List<Operation>listOperations(long accountId);

	/**
	 * List operations range for an account
	 * @param accountId Account ID
	 * @param start Start of range
	 * @param length Length of range
	 * @return List of operations. 
	 */
	List<Operation> listOperationsRange(long accountId, int start, int length);
}
